package com.example.learnnacos;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class PriorityTestService implements InitializingBean {



    @Value("${test1}")
    private String test1;

    @Override
    public void afterPropertiesSet() throws Exception {
        log.info("test1: {}", test1);
    }
//    @Scheduled(fixedRate = 1000)
    public void doScheduled () {
        log.info("test1: {}", test1);
    }
}
